<?php
require("conf.php");
$yhendus=new mysqli($host, $username, $password, $db_name);
$kask=$yhendus->prepare("SELECT pealkiri, sisu, date FROM uudis ORDER BY date");
$kask->bind_result($pealkiri, $sisu, $date);
echo"<h1>Uudised</h1>";
$kask->execute();
echo"<tr>";

while($kask->fetch())
{
	$sisu_f= nl2br($sisu);
	echo"<td>$sisu_f</td>";
}
echo"</tr>";